package io.kiki.stack.netty.command;

import io.kiki.stack.netty.channelManager.ChannelContext;
import io.kiki.stack.netty.processor.Processor;

import java.util.concurrent.Executor;

public interface CommandHandler {

    void handleCommand(ChannelContext channelContext, Object msg) throws Exception;

    void registerProcessor(CommandCode cmd, Processor<?> processor);

    void registerDefaultExecutor(Executor executor);

    Executor getDefaultExecutor();

}
